package com.etc.traval.dao;

import java.util.List;

import com.etc.travel.entity.Place;

public interface PlaceDao {

	//根据id查找景点
	public Place queryPlaceById(int id);
	//查询所有景点
	public List<Place> queryAllPlace(int page,int size);
	//根据景点名查询景点
	public List<Place> queryPlaceByName(String name,int page,int size);
	//添加一个新景点
    public boolean addPlace(Place place);
    //根据id删除景点
    public boolean deletePlaceById(int id);
    //根据id修改
    public boolean updatePlaceById(Place place, int id);
    //根据景点名模糊查询所有景点
    public List<Place> queryAllByNameKey(String key);
}
